package com.bigdatastudio.openfeign.client;

import com.bigdatastudio.common.Utils.R;
import com.bigdatastudio.common.dto.UserParm;
import com.bigdatastudio.openfeign.fallback.NoticeClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xiao_jie
 * @date 2022/11/6 20:30
 * @describe this is a text
 */

@FeignClient(name = "bigdatastudio-notice",fallback = NoticeClientFallBack.class)
public interface NoticeClient {

    // 传递参数一定要有RequestParam，RequestBody
    @GetMapping("/notice/getOne")
    public R getOne(@RequestParam Integer id);

}
